package cn.tedu.controller;

import cn.tedu.pojo.Car;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/car")
public class CarController {
    @RequestMapping("/get")
    public Car get(){
        Car car = new Car();
        car.setId(100);
        car.setName("保时捷");
        car.setType("258");
        car.setColor("白色");
        car.setPrice(2580000.00);
        return car;
    }
}
